# -*- coding: utf-8 -*-
from wtforms import Form, IntegerField, StringField
from wtforms.validators import InputRequired,DataRequired


class blogForm(Form):
    title = StringField(validators=[DataRequired(message="请输入标题！")])
    content = StringField(validators=[DataRequired(message="请输入内容！")])
    images = StringField(validators=[DataRequired(message="请选择至少一张图片！")])
    shopId = IntegerField(validators=[DataRequired(message="请选择商户！")])
